#-------------------------------------------------
#
# MQTT客户端 2021-09-09 09:25:00
#
#-------------------------------------------------

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TARGET = LiuMQTTClient
TEMPLATE = app
DESTDIR += bin
MOC_DIR += tmp
OBJECTS_DIR += tmp
UI_DIR += tmp
RCC_DIR += tmp
CONFIG += qt warn_on debug_and_release
INCLUDEPATH += tmp src $(SDKDIR)/EclipsePahoC/include $(SDKDIR)/sqlite3/include
QT += core gui

QMAKE_CXXFLAGS_RELEASE = $$QMAKE_CFLAGS_RELEASE_WITH_DEBUGINFO
QMAKE_LFLAGS_RELEASE = $$QMAKE_LFLAGS_RELEASE_WITH_DEBUGINFO

SOURCES +=  src/ConnectManager.cpp \
            src/DataCtrl.cpp \
            src/MQTTClientMain.cpp \
            src/MQTTProxy.cpp \
            src/NewConnect.cpp \
            src/SqliteProxy.cpp \
            src/main.cpp

HEADERS +=  src/ConnectManager.h \
            src/DataCtrl.h \
            src/MQTTClientMain.h \
            src/MQTTProxy.h \
            src/NewConnect.h \
            src/SqliteProxy.h \
			src/PublicStruct.h
	
FORMS  +=   forms/ConnectManager.ui \
            forms/MQTTClientMain.ui \
            forms/NewConnect.ui
			
win32 {
    LIBS += $(SDKDIR)/EclipsePahoC/lib/paho-mqtt3a.lib
    LIBS += $(SDKDIR)/sqlite3/lib/sqlite3.lib
    build_pass:CONFIG(release, debug|release) {
    }

    build_pass:CONFIG(debug, debug|release) {
		TARGET = $$join(TARGET,,,d)
    }
}
